package com.yonyou.cyxdms.sysAuth.service.dto.authorization;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.Locale;

/**
 * 记录登录的相关信息
 *
 * @author zhangxc
 * @date 2016年6月30日
 */
@Component
@Scope("request")
public class ImLoginInfoDto {

    private String userAccount; // 用户登录账号
    //	private Long empId; // Tm_emp ID
    private Long userId; // 用户ID，IM客服系统废弃
    private String consultantId; // 客服顾问ID
    private Integer loginWay; // 登录方式：APP、PC
    private String appId; // 所属公司代码
    private Long dealerId; // 所属 经销商ID
    private String dealerCode; // 经销商代码
    //	private Integer orgId;
//	private Integer dataSourceChannel; // 数据来源渠道
//	private Locale locale;
    private String uuid; // 用于网关存储jwt的key

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

//	public Long getEmpId() {
//		return empId;
//	}
//
//	public void setEmpId(Long empId) {
//		this.empId = empId;
//	}

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getConsultantId() {
        return consultantId;
    }

    public void setConsultantId(String consultantId) {
        this.consultantId = consultantId;
    }

    public Integer getLoginWay() {
        return loginWay;
    }

    public void setLoginWay(Integer loginWay) {
        this.loginWay = loginWay;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Long getDealerId() {
        return dealerId;
    }

    public void setDealerId(Long dealerId) {
        this.dealerId = dealerId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

//	public Integer getOrgId() {
//		return orgId;
//	}
//
//	public void setOrgId(Integer orgId) {
//		this.orgId = orgId;
//	}
//
//	public Integer getDataSourceChannel() {
//		return dataSourceChannel;
//	}
//
//	public void setDataSourceChannel(Integer dataSourceChannel) {
//		this.dataSourceChannel = dataSourceChannel;
//	}
//
//	public Locale getLocale() {
//		return locale;
//	}
//
//	public void setLocale(Locale locale) {
//		this.locale = locale;
//	}

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String toString() {
        return "ImLoginInfoDto{" +
                "userAccount='" + userAccount + '\'' +
                ", userId=" + userId +
                ", consultantId='" + consultantId + '\'' +
                ", loginWay=" + loginWay +
                ", appId='" + appId + '\'' +
                ", dealerId=" + dealerId +
                ", dealerCode='" + dealerCode + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
